<?php

class Application_Model_Turn
{
	protected $_id;
	protected $_name;
	protected $_boot;
	protected $_ersteller;
	protected $_created;
	protected $_startdatum;
	protected $_enddatum;
	protected $_status;

	public function __construct (array $options = null)
	{
		if (is_array($options))
		{
			$this->setOptions($options);
		}
	}
	public function setOptions (array $options)
	{
		$methods = get_class_methods($this);
		foreach ($options as $key => $value)
		{
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods))
			{
				$this->$method($value);
			}
		}
		return $this;
	}

	public function __set ($name, $value)
	{
		$method = 'set' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid auth property');
		}
		$this->$method($value);
	}
	public function getId() {
		return $this->_id;
	}

	public function getName() {
		return $this->_name;
	}

	public function getBoot() {
		return $this->_boot;
	}

	public function getErsteller() {
		return $this->_ersteller;
	}

	public function getCreated() {
		return $this->_created;
	}

	public function setId($_id) {
		$this->_id = $_id;
	}

	public function setName($_name) {
		$this->_name = $_name;
	}

	public function setBoot($_boot) {
		$this->_boot = $_boot;
	}

	public function setErsteller($_ersteller) {
		$this->_ersteller = $_ersteller;
	}

	public function setCreated($_created) {
		$this->_created = $_created;
	}
	public function getStartdatum() {
		return $this->_startdatum;
	}

	public function getEnddatum() {
		return $this->_enddatum;
	}

	public function setStartdatum($_startdatum) {
		$this->_startdatum = $_startdatum;
	}

	public function setEnddatum($_enddatum) {
		$this->_enddatum = $_enddatum;
	}
	public function getStatus() {
		return $this->_status;
	}

	public function setStatus($_status) {
		$this->_status = $_status;
	}





}

